﻿using Domain.Entity.zct;
using Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.IRepository
{
    public interface IPositionRepository
    {
        //全部查
        Task<List<Position>> GetAll();

        //条件查
        Task<FenYe<Position>> GetCondition(FenYe<Position> fenYe, string? Position_code, string? Position_name, int? Position_status);

        //停用
        Task<int> GetDeactivated(int id);

        //启用
        Task<int> GetEnable(int id);

        //编辑
        Task<int> GetEdit(Position position);

        //添加
        Task<int> GetAdd(Position position);

        //删除
        Task<int> GetDelete(int id);

        //id查询
        Task<Position> GetID(int id);
    }
}
